@echo off
set _PT=%PATH%
set PATH=%JAVA_HOME%\bin;%PATH%
@echo Building dpls.ear using JAVA_HOME %JAVA_HOME% ...
mkdir ..\stage\dpls
xcopy /e dpls ..\stage\dpls
@echo including last minute changes on Prism.jar and jconfig.jar...
mkdir ..\stage\dpls\dpls\WEB-INF\lib
copy ..\bin\Prism.jar ..\stage\dpls\dpls\WEB-INF\lib\Prism.jar
copy ..\bin\jconfig.jar ..\stage\dpls\dpls\WEB-INF\lib\jconfig.jar
cd ..\stage\dpls\dpls
jar cvf ../dpls.war .
cd ..
rmdir /q /s dpls
jar cvf ../dpls.ear .
cd ..
rmdir /q /s dpls
copy dpls.ear ..\bin
del dpls.ear
cd ..\applications
@echo Building dpls.ear done. (look at ..\bin directory)
set PATH=%_PT%
